<%--
  Created by IntelliJ IDEA.
  User: 25083
  Date: 2018/6/12
  Time: 21:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%@include file="/static/common/commom.jsp" %>
    <script src="/static/js/task.js"></script>
</head>
<body>
<table id="sche_datagrid"></table>
<div id="tb">
    姓名查询:<input class="easyui-textbox" name="keyword" prompt="请输入姓名">
    <input type="hidden" name="deptId">
    部门查询:<input class="easyui-combobox dept_combobox" name="dept.id" prompt="请选择部门"
                data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/department/selectAll.do'"/>
    日期查询 <input class="easyui-datebox" name="beginDate"/> ~ <input type="text" class="easyui-datebox" name="endDate"/>
    <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="searchForm">查询</a><br><br>
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">新建任务</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="icon-bianji" plain="true" data-cmd="edit">编辑任务</a>
    <a class="easyui-linkbutton" iconCls="icon-print" plain="true" data-cmd="exportXls">打印任务</a>
    <a id="state_btn1" class="easyui-linkbutton" iconCls="icon-biaoji" plain="true" data-cmd="changeState">标记完成</a>
    <a class="easyui-linkbutton" iconCls="icon-shuaxin" plain="true" data-cmd="reload">刷新任务</a>
    <a class="easyui-linkbutton" iconCls="icon-shuaxin" plain="true" data-cmd="look">查看任务明细</a>
</div>

<div id="sche_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>

<div id="sche_dialog">
    <form id="sche_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 20px" cellspacing="10px" cellpadding="5px">
            <tr>
            <td>姓名:</td>
            <td><input name="emp.id" class="easyui-combobox" id="sche_username"
                       data-options="panelHeight:'auto',textField:'username',valueField:'id',url:'/employee/selectAll.do'"
            ></td>
            </tr>
            <tr>
                <td>部门:</td>
                <td><input name="dept.id" class="easyui-combobox" id="sche_name"
                           data-options="panelHeight:'auto',textField:'name',valueField:'id',url:'/department/selectAll.do'"
                ></td>
            </tr>
            <tr>
                <td>编号</td>
                <td>
                    <input id="sche_sn" class="textbox" name="sn"/>
                </td>
            </tr>
            <tr>
                <td>时间</td>
                <td>
                    <input id="sche_date" class="easyui-datebox" name="date"/>
                </td>
            </tr>
            <tr>
                <td>地点</td>
                <td>
                    <input id="sche_site" class="textbox" name="site">
                </td>
            </tr>
            <tr>
                <td>内容</td>
                <td>
                    <textarea id="sche_content" style="resize: none"; rows="5px"; cols="33px" name="content"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>

<div id="task_btns"></div>

<div id="task_dialog">
    <form id="task_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 20px" cellspacing="10px" cellpadding="5px">
            <tr>
                <td>姓名:</td>
                <td><input name="emp.id" class="easyui-combobox" readonly="true"
                           data-options="panelHeight:'auto',textField:'username',valueField:'id',url:'/employee/selectAll.do'"
                ></td>
            </tr>
            <tr>
                <td>编号</td>
                <td>
                    <input class="textbox" readonly="true" name="sn"/>
                </td>
            </tr>
            <tr>
                <td>时间</td>
                <td>
                    <input class="easyui-datebox" readonly="true" name="date"/>
                </td>
            </tr>
            <tr>
                <td>地点</td>
                <td>
                    <input class="textbox" readonly="true" name="site">
                </td>
            </tr>
            <tr>
                <td>内容</td>
                <td>
                    <textarea readonly="true" style="resize: none"; rows="5px"; cols="33px" name="content"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
